package com.nnfe.fyd.bean.inquiry;

import android.text.TextUtils;

import com.nnfe.fyd.bean.BaseBean;

/**
 * ----------------------------------
 * Created by xyd on 2017/5/17.
 * <p/>
 * 描  述：
 * <p/>
 * 修订历史:
 * ----------------------------------
 */

public class AutoInquiry extends BaseBean {


    /**
     * inquiry : {"id":100566,"userInfo":{"id":"ff8080815b79fab5015b7af33ddc0038","registTime":1492416413000,"registPlant":"718bank","registChannel":"","loginName":"XYJR_15500000001","status":"1","whiteList":null,"userType":"1","mobile":"L+yW3d5Zx3dCxTskPuzEog==","password":"be8b31a5e0359263b1f02f0afa0997cd","email":null,"tradePwd":null,"name":"鲁班1号","idCard":"SJ+pVkBmlWo/8WlFBwLpHA==","headimg":"/var/www/html/userCenter/headImg/ff8080815b79fab5015b7af33ddc0038.png","industry":null,"maritalStatus":null,"nickname":null,"address":null,"level":null,"fddUserId":null},"fydChannel":{"id":"ff8080815b3c474e015b3ce0f982000c","channelName":"宏阳投资","contact":"","telephone":"","channelManager":"4","openId":"oGyTPwHU0UCJP6Gvt7hglps6-Ub0"},"isOwnership":0,"roomAddress":null,"areaName":"君堂好园","housingArea":163.96,"housingType":"住宅","housingMortgage":1,"ownershipPicture":null,"customerName":null,"loanAmount":null,"loanLimitMin":495,"loanLimitMax":528,"inquiryTime":1495006435272,"quotationTime":1495006435272,"mortgageAmount":0,"userSource":"app","unitPrice":null,"totalPrice":null,"isDelete":0,"remark":null,"inquiryType":1,"picUrl4Test":"","picUrl4Work":""}
     * fcgz : 660
     */

    public InquiryBean inquiry;
    public String fcgz;                 // 房产估值

    public static class InquiryBean extends BaseBean {
        public String id;               // 单号
        public String loanLimitMin;     // 最小估值
        public String loanLimitMax;     // 最大估值

        public String getLoanLimitMin() {
            if (!TextUtils.isEmpty(loanLimitMax) && Double.parseDouble(loanLimitMax)<0){
                return "0";
            }
            return loanLimitMin;
        }

        public String getLoanLimitMax() {
            if (!TextUtils.isEmpty(loanLimitMin) && Double.parseDouble(loanLimitMin)<0){
                return "0";
            }
            return loanLimitMax;
        }
    }
}
